// miniprogram/pages/index/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    h1:0,
    h2:0,
    h3:0,
    h4:0,
    h5:0,
    h6:0,

    l1:0,
    l2:0,
    l3:0,
    l4:0,
    l5:0,
    l6:0,
  },

  /**
   * 生命周期函数--监听页面加载
   */
hadd1:function(e){
  var that = this;
if(that.data.h1<5){
  this.setData({ h1: that.data.h1 + 1 });
}else{
  this.setData({ h1: that.data.h1 })
}
},
hadd2:function(e){
  var that = this;
if(that.data.h2<5){
  this.setData({ h2: that.data.h2 + 1 });
}else{
  this.setData({ h2: that.data.h2 })
}
},
hadd3:function(e){
  var that = this;
if(that.data.h3<5){
  this.setData({ h3: that.data.h3 + 1 });
}else{
  this.setData({ h3: that.data.h3 })
}
},
hadd4:function(e){
  var that = this;
if(that.data.h4<5){
  this.setData({ h4: that.data.h4 + 1 });
}else{
  this.setData({ h4: that.data.h4 })
}
},
hadd5:function(e){
  var that = this;
if(that.data.h5<5){
  this.setData({ h5: that.data.h5 + 1 });
}else{
  this.setData({ h5: that.data.h5 })
}
},
hadd6:function(e){
  var that = this;
if(that.data.h6<5){
  this.setData({ h6: that.data.h6 + 1 });
}else{
  this.setData({ h6: that.data.h6 })
}
},



ladd1:function(e){
  var that = this;
if(that.data.l1<5){
  this.setData({ l1: that.data.l1 + 1 });
}else{
  this.setData({ l1: that.data.l1 })
}
},
ladd2:function(e){
  var that = this;
if(that.data.l2<5){
  this.setData({ l2: that.data.l2 + 1 });
}else{
  this.setData({ l2: that.data.l2 })
}
},
ladd3:function(e){
  var that = this;
if(that.data.l3<5){
  this.setData({ l3: that.data.l3 + 1 });
}else{
  this.setData({ l3: that.data.l3 })
}
},
ladd4:function(e){
  var that = this;
if(that.data.l4<5){
  this.setData({ l4: that.data.l4 + 1 });
}else{
  this.setData({ l4: that.data.l4 })
}
},
ladd5:function(e){
  var that = this;
if(that.data.l5<5){
  this.setData({ l5: that.data.l5 + 1 });
}else{
  this.setData({ l5: that.data.l5 })
}
},
ladd6:function(e){
  var that = this;
if(that.data.l6<5){
  this.setData({ l6: that.data.l6 + 1 });
}else{
  this.setData({ l6: that.data.l6 })
}
},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})